<div id="dlgx" class="easyui-dialog" style="width:600px;height:410px;padding:10px 20px" closed="true" buttons="#dlg-buttons">
	<div style="margin-bottom: 5px;">
			<span>按姓名搜索:</span>
			<input id="employeName" type="text"/>
	</div>
		<table id="dgsx" class="easyui-datagrid" style="width:540px;height:320px"  url="__APP__/Department/employeListData"   
					rownumbers="true" pagination="true" toolbar="#tb" data-options="singleSelect:true,fitColumns:true">  
			<thead>
				<tr>
					<th field="employe_work_id" align="center" width="100">工号</th>
					<th field="employe_name" align="center" width="100">姓名</th>
				</tr>
			</thead>
		</table>
</div>
<script>
	function doSearch(){
		$('#dlgx').dialog('open').dialog('setTitle','快速查询');
		$('#fm').form('clear');
	}


	$(function(){
			$('#employeName').keyup(function(){
				$('#dgsx').datagrid('load',{
					employe_name: $('#employeName').val()
				});
			})

			$('#dgsx').datagrid({
				onDblClickRow:function(rowIndex){
				var selected = $('#dgsx').datagrid('getSelected');
				$('#check_person').val(selected.employe_name);
				$('#check_person_id').val(selected.employe_id);
				$('#phone_num').val(selected.employe_phone);
				 $('#dlgx').dialog('close');
				  }
			});
		});
</script>